import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import home from "@/pages/home";
import Expert from "@/pages/Expert";
import Customer from "@/pages/Customer";
import Finance from "@/pages/Finance";
import Information from "@/pages/Information";
import Property from "@/pages/Property";
import Support from "@/pages/Support";
import Infodetail from "@/pages/Infodetail";
import Custdetails from "@/pages/Custdetails";
import Companymand from "@/pages/Companymand";
import Expertdetail from "@/pages/Expertdetail";
import Onlineconsu from "@/pages/Onlineconsu";
import Experthome from "@/pages/Experthome";
import Finapply from "@/pages/Finapply";
import Prodetail from "@/pages/Prodetail";
// 企业中心
import companycenter from "@/pages/companycenter";
// 我的订单
import myorder from "@/pages/myorder";
// 我的服务
import myserver from "@/pages/myserver";
// 我的资产
import myasset from "@/pages/myasset";
// 手支明细
import myincome from "@/pages/myincome";
// 我的发票
import mybill from "@/pages/mybill";
// 产品管理
import management from "@/pages/management";
// 发布产品
import bidding from "@/pages/bidding";
// 我的企业
import myfirm from "@/pages/myfirm";
//个人信息
import myinform from "@/pages/myinform";
// 员工管理
import mystaff from "@/pages/mystaff";
// 登陆模块
import Login from "@/pages/Login";
// 忘记密码
import Forgetpasd from "@/pages/Forgetpasd";
// 忘记密码-输入账号
import Inputacount from "@/pages/Inputacount";
// 验证身份
import Identity from "@/pages/Identity";
// 重置密码
import Resetpwd from "@/pages/Resetpwd";
// 重置成功
import Resetsuces from "@/pages/Resetsuces";



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },
    // 首页
    {
      'path': "/home",
      name: "home",
      component: home
    },
    //技术专家路由
    {
      path: "/expert",
      name: "Expert",
      component: Expert
    },
    // 客户资源
    {
      path: "/customer",
      name: "Customer",
      component: Customer
    },
    // 塑云金融路由
    {
      path: "/finance",
      name: "Finance",
      component: Finance
    },
    // 资讯中心路由
    {
      path: "/Information",
      name: "Information",
      component: Information
    },
    // 物性库路由
    {
      path: "/property",
      name: "Property",
      component: Property
    },
    //  自营商城
    {
      path: "/support",
      name: "Support",
      component: Support
    },
    //质询中心详情
    {
      path: "/infodetail",
      name: "infodetail",
      component: Infodetail
    },
    // 客户资源详情
    {
      path: "/custdetails",
      name: "Custdetails",
      component: Custdetails
    },
    {
      path: "/companymand",
      name: "Companymand",
      component: Companymand
    },
    // 电话咨询
    {
      path: "/expertdetail",
      name: "Expertdetail",
      component: Expertdetail
    },
    // 网上咨询
    {
      path: "/onlineconsu",
      name: "Onlineconsu",
      component: Onlineconsu
    },
    //专家首页
    {
      path: "/experthome",
      name: "Experthome",
      component: Experthome
    },
    {
      path: "/finapply",
      name: "Finapply",
      component: Finapply
    },
     {
      path: "/prodetail",
      name: "Prodetail",
      component: Prodetail
    },
    // 企业中心
    {
      path: "/companycenter",
      name: "companycenter",
      component: companycenter,
      children: [
        {
          // 我的订单
          path: "/myorder",
          name: "myorder",
          component: myorder
        }, {
          //我的服务
          path: "/myserver",
          name: "myserver",
          component: myserver
        },
        , {
          // 我的资产

          path: "/myasset",
          name: "myasset",
          component: myasset
        }, {
          //手支明细

          path: "/myincome",
          name: " myincome",
          component: myincome
        }, {
          //我的发票
          path: "/mybill",
          name: "mybill",
          component: mybill
        }, {
          //产品管理

          path: "/management",
          name: "management",
          component: management
        }, {
          //发布产品

          path: "/bidding",
          name: "bidding",
          component: bidding
        }, {
          //我的企业

          path: "/myfirm",
          name: "myfirm",
          component: myfirm
        }, {
          //个人信息

          path: "/myinform",
          name: "myinform",
          component: myinform
        }, {
          //员工管理

          path: "/mystaff",
          name: "mystaff",
          component: mystaff
        },
      ]
    },
    // 登陆模块
    {
      path:"/login",
      name:"Login",
      component:Login
    },
        // 忘记密码
     {
       path:"/forgetpasd",
       name:"Forgetpasd",
       component: Forgetpasd
     },
     // 忘记密码-输入账号
    {
      path: "/inputacount",
      name: "Inputacount",
      component: Inputacount
    },
    // 验证身份
    {
      path:"/identity",
      name:"Identity",
      component: Identity
    },
    // 重置密码
    {
      path: "/resetpwd",
      name: "Resetpwd",
      component: Resetpwd
    },
    // 重置成功
    {
      path:"/resetsuces",
      name:"Resetsuces",
      component: Resetsuces
    }

  ]
})
